package com.swsc.solarverse.service.analysis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swsc.solarverse.dao.entity.analysis.StringEfficiencyRecordDO;
import com.swsc.solarverse.dao.mapper.analysis.StringEfficiencyRecordMapper;
import com.swsc.solarverse.service.analysis.IStringEfficiencyRecordService;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-06-04
 */
@Service
public class StringEfficiencyRecordServiceImpl extends ServiceImpl<StringEfficiencyRecordMapper, StringEfficiencyRecordDO> implements IStringEfficiencyRecordService {

    @Override
    public int insertIgnoreBatch(List<StringEfficiencyRecordDO> list) {
        return baseMapper.insertIgnoreBatch(list);
    }

    @Override
    public Double avgLossE(Collection<Integer> organNoIn, LocalDateTime dataTimeGe, LocalDateTime dataTimeLt) {
        return baseMapper.avgLossE(organNoIn, dataTimeGe, dataTimeLt);
    }

    @Override
    public Double avgLossENew(Collection<Integer> organNoIn, LocalDateTime dataTimeGe, LocalDateTime dataTimeLt, Double lossThresholdE) {
        return baseMapper.avgLossENew(organNoIn, dataTimeGe, dataTimeLt, lossThresholdE);
    }

    @Override
    public LocalDateTime minDataTime(Integer organNo) {
        return baseMapper.minDataTime(organNo);
    }
}
